home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15885 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.mathworks.com!gatech!gt-news!james
  2. From: james@amber.biology.gatech.edu (James McIninch)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: 8 Apr 1996 18:16:18 GMT
  6. Organization: Georgia Institute of Technology
  7. Message-ID: <4kbl5i$p3@mordred.gatech.edu>
  8. References: <JSA.96Feb16135027@organon.com> <dewar.828757752@schonberg> <danpop.828819479@rscernix> <dewar.828879781@schonberg> <4k9qhe$65r@solutions.solon.com> <dewar.828936837@schonberg> <828964950snz@genesis.demon.co.uk> <4kbfup$2vd@news1.mnsinc.com>
  9. NNTP-Posting-Host: exon.biology.gatech.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Szu-Wen Huang (huang@mnsinc.com) wrote:
  13. : Lawrence Kirby (fred@genesis.demon.co.uk) wrote:
  14. : : In article <dewar.828936837@schonberg> dewar@cs.nyu.edu "Robert Dewar" writes:
  15.  
  16. : : >Boy, this sure has wandered! THe original issue was the semantic behavior
  17. : : >of read. Unlike other unices, in Linux, the bounds check for the read
  18. : : >buffer is based on the requested count, rather than the actual count
  19. : : >of data bytes read. It is hard to say either approach is right or
  20. : : >wrong, but they are different enough to cause portability problems.
  21.  
  22. : : Both approaches meet the relevant standards and are correct. Only broken
  23. : : code has portability problems, but that's nothing new.
  24.  
  25. : Shouldn't true portability mean that even bugs are cross-platform and
  26. : fail reliably?  ;)
  27.  
  28.  
  29. No. When it says "undefined", it means "undefined". There's no way to make
  30. undefined behavior portable, that's why it's undefined.
  31.  
  32.